import request from '@/utils/request'

// 查询扣杂标准列表
export function listQastandard(query) {
  return request({
    url: '/quality/qastandard/list',
    method: 'get',
    params: query
  })
}

// 查询扣杂标准详细
export function getQastandard(guid) {
  return request({
    url: '/quality/qastandard/' + guid,
    method: 'get'
  })
}

// 新增扣杂标准
export function addQastandard(data) {
  return request({
    url: '/quality/qastandard',
    method: 'post',
    data: data
  })
}

// 修改扣杂标准
export function updateQastandard(data) {
  return request({
    url: '/quality/qastandard',
    method: 'put',
    data: data
  })
}

// 删除扣杂标准
export function delQastandard(guid) {
  return request({
    url: '/quality/qastandard/' + guid,
    method: 'delete'
  })
}

// 导出扣杂标准
export function exportQastandard(query) {
  return request({
    url: '/quality/qastandard/export',
    method: 'get',
    params: query
  })
}